﻿using System;
using FBGraph.ClientGenerator.CodeGen;

namespace FBGraph.ClientGenerator.Tests.CodeGen
{
    public class TestCodeGenObject : CodeGenObject
    {
        public TestCodeGenObject(String value)
        {
            this.Value = value;
        }

        public String Value { get; set; }

        public override void Write(CodeGenWriter writer)
        {
            writer.Write(this.Value);
        }

        public override Boolean Equals(Object obj)
        {
            var that = obj as TestCodeGenObject;
            if (that == null) return false;
            else return this.Value == that.Value;
        }
    }
}